import { Entity, Column } from 'typeorm';
import { Base } from './base.entity';
import { ApiProperty } from '@nestjs/swagger';

@Entity({
  name: 'chat_scene',
})
export class ChatSceneEntity extends Base {
  @Column({ length: 20 })
  @ApiProperty({ title: '房间名' })
  sceneName: string;

  @Column({ length: 36 })
  @ApiProperty({ title: 'userId' })
  userId: string;
  @Column({ length: 36 })
  @ApiProperty({ title: 'roomId' })
  roomId: string;

  @Column({ type: 'tinyint',default: 3 })
  @ApiProperty({ title: '1、结束 2、进行中 3、未开始' })
  status: number;
  @Column({ type: 'tinyint',default: 0 })
  @ApiProperty({ title: 'is_ad' })
  is_ad: number;

  

  @ApiProperty({ title: '是否删除' })
  @Column({ type: Number, default: 0 })
  isDelete?: string;

  // 对局数
  @Column({ type: 'tinyint', default: 4 })
  gameNum: number;
  @Column({ type: 'tinyint', default: 2 })
  seat: number;
  @Column({ type: 'tinyint', default: 1 })
  model: number; // 1是长麻 2是红中
  @Column({ type: 'tinyint', default: 1 })
  isFangPao: number;
  @Column({ type: 'text', default: null })
  qiShouHu: string; //{banbanhu:1,queyise:1,}
  @Column({ type: 'text', default: null })
  isDaHu: string; //{qidui:1,haoqidui:1}
  @Column({ type: 'tinyint', default: 2 })
  mashu: number; //1
  @Column({ type: 'tinyint', default: 0 })
  allhz: number; //无码抓几个
  @Column({ type: 'tinyint', default:1 })
  hz2: number; //有码抓几个
}
